package com.hq.cms.domain;

import java.util.Date;

public class Comments {

	private Integer id;
	private String content;
	private Date displayTime;
	private Article blog;
	private User author;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getDisplayTime() {
		return displayTime;
	}
	public void setDisplayTime(Date displayTime) {
		this.displayTime = displayTime;
	}
	public Article getBlog() {
		return blog;
	}
	public void setBlog(Article blog) {
		this.blog = blog;
	}
	public User getAuthor() {
		return author;
	}
	public void setAuthor(User author) {
		this.author = author;
	}
	public Comments(Integer id, String content, Date displayTime, Article blog, User author) {
		super();
		this.id = id;
		this.content = content;
		this.displayTime = displayTime;
		this.blog = blog;
		this.author = author;
	}
	public Comments() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "Comments [id=" + id + ", content=" + content + ", displayTime=" + displayTime + ", blog=" + blog
				+ ", author=" + author + "]";
	}
	
	
}
